<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<div class="header">
	<div class="logo"><a href="index.html">
		<img src="${pageContext.request.contextPath }/images/logo.gif" alt="" title="" border="0" /></a>
	</div>            
	<div id="menu">
      <ul>                                                                       
          <li class="${param.css eq 'index' ? 'selected' : ''}"><a href="${path }/book/index">首页</a></li>
          <li class="${param.css eq 'category' ? 'selected' : ''}"><a href="${path }/book/category">图书</a></li>
          <li class="${param.css eq 'special' ? 'selected' : ''}"><a href="${path }/book/special">特价图书</a></li>
          
          <!--<li><a href="details.html">prices</a></li>-->
          <li class="${param.css eq 'order' ? 'selected' : ''}"><a href="${path }/order/myorders">我的订单</a></li>
       <%--    <li class="${param.css eq 'about' ? 'selected' : ''}"><a href="${path}/about.html">关于我们</a></li>
          <li class="${param.css eq 'contact' ? 'selected' : ''}"><a href="${path}/contact.html">联系我们</a></li> --%>
          
          <c:if test="${empty user }">
          	<li class="${param.css eq 'login' ? 'selected' : ''}"><a href="${path }/user/tologin">登陆</a></li>
          	<li class="${param.css eq 'register' ? 'selected' : ''}"><a href="${path }/user/toregister">注册</a></li>
          </c:if>
      
          <c:if test="${not empty user }">
          	    <li style="color:yellow; text-decoration: none">欢迎你<a href="${path}/user/tomodify">【${user.realName }】</a>
          	<li class="${param.css eq 'logout' ? 'selected' : ''}"><a href="${path}/user/logout">注销</a></li>
          </c:if>
      </ul>
    </div>     
</div> 
<!-- 使用一段JS脚本来控制菜单的点击样式 -->

